/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package totalexpenses;
import java.io.*;
import java.lang.*;
/**
 *
 * @author SUDEEP
 */
public class TotalExpenses {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception
    {
        int qty; float price;
        int dis; float totexp;
        BufferedReader b;
        b= new BufferedReader(new InputStreamReader(System.in));
        String str;
        str=b.readLine();
        qty =Integer.parseInt(str);
        str=b.readLine();
        price =Float.parseFloat(str);
       
        
        if(qty>=1000)
            dis=10;
        else
            dis=0;
        totexp = qty*price-qty*price*dis/100;
        
        System.out.println("total Exp= Rs." + totexp);
    }
}
